package com.example;

/** A custom class with a public static method that takes String varargs and returns a String. */
public class MyCustomClass {

	/** MonkeyTalk will call this class method using App.Exec */
	public static String sayHello(String... args) {
		StringBuilder sb = new StringBuilder();
		for (String arg : args) {
			sb.append(sb.length() > 0 ? "," : "").append(arg);
		}
		System.out.println("Hello, " + sb.toString());
		return "hello " + sb.toString();
	}
}
